dropdown: Revise constructors
authorMatthias Clasen <mclasen@redhat.com>
Sun, 26 Jul 2020 13:34:08 +0000 (09:34 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 26 Jul 2020 22:09:54 +0000 (18:09 -0400)
commitf7ab6f665d405c0eaa20da4491e4550d867bd9cf
treeea48453bb9da6b437ed9970f992b6604ddbd6b9d
parentef6babf896cd06bd42d0fb11e3aae7c109708bdd
dropdown: Revise constructors

A dropdown without a model is useless, so accept a model
and expression in the constructor. Allow them to be NULL,
but consume them if given. This makes chained constructors
convenient without breaking language bindings.

Drop gtk_drop_down_set_from_strings() and instead add
gtk_drop_down_new_from_strings().

Update all users.
13 files changed:
demos/gtk-demo/dropdown.c
demos/gtk-demo/listview_colors.c
docs/reference/gtk/gtk4-sections.txt
gtk/gtkcustompaperunixdialog.c
gtk/gtkdropdown.c
gtk/gtkdropdown.h
gtk/gtkfilechooserwidget.c
gtk/gtkprinteroptionwidget.c
gtk/inspector/controllers.c
gtk/inspector/prop-editor.c
gtk/inspector/size-groups.c
gtk/inspector/visual.c
tests/testdropdown.c